home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: artemis.sto.fdata.se!news
- From: Niklas Mellin <niklas.mellin@sto.fdata.se>
- Subject: Re: C++ vs Delphi
- Sender: news@artemis.sto.fdata.se (UseNet NetNews)
- Message-ID: <316E1460.569@sto.fdata.se>
- Date: Fri, 12 Apr 1996 08:29:20 GMT
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- References: <4kj9ec$lji@nntp.atlanta.com>
- Mime-Version: 1.0
- X-Mailer: Mozilla 2.0 (WinNT; I)
- Organization: WM-data F÷rsvarsdata AB, Sweden
-
- jbernasky@homedepot.com wrote:
- >
- > My company is currently evaluating a new development environment. It looks
- > like it will come down to C++ or Delphi. As a C++ developer, I was wondering
- > if there are certain pitfalls associated with Delphi. Everything that I read
- > in the press about Delphi is glowing, but as we all know, nothing is that
- > great. In addition, any insight on how well it handles Pascal as an object
- > oriented language would be appreciated. Thanks!
-
- I use both C++ and Delphi. There is not much negative I can say about Delphi,
- but I think C++ is more fun to write programs in.
-
- Delphi uses Borland's Object Pascal. The first advantage of that language
- compared to C++ is that it is much faster to compile and link. Currently
- I'm working with a quite large project (about 40 forms and 10-20 source
- files that are not bound to a form), it takes about 1 minute to compile it
- all, in C++ I guess it would take 15-20 minutes.
-
- What I miss in Delphi is the ability to put objects on the stack. The
- only place where you can allocate objects in Delphi is on the heap,
- which can easily lead to memory leaks if you are not careful. Since
- there is no way of having the objects on the stack, a garbage collector
- would have been nice to have, but there is non in Delphi.
-
- I also miss the ability to do function overloading, especially for the
- constructors.
-
- String handling is quite cumbersom if strings are longer than 255
- characters, or if they must be convertet to and from C style strings
- (terminating with a '\0'). I am told that this have been inproved in
- Delphi 2.0 but unfortunatly I haven't had the opportunity to look at
- the new version yet.
-
- Other things that are missing in Delphi are operator overloading, which
- is more of a syntactic sugar, so you can manage without it, and multiple
- inheritance, which is not in the language, but so far I haven't had any
- need of it.
-
- If I am to choose a development environment for windows, I think I'd go
- for a combination of C++ and Delphi. Delphi for the uses interface,
- graphics etc. and C++ for calculations and database access (using ODBC
- for portability). The database support in Delphi is simple to use
- but I think it is too tightly bound to the user interface.
-
- ---
- Niklas Mellin
-